#!/bin/bash
LocalHour=$(date +%H)
LocalMinute=$(date +%M)
LocalWeek=$(date +%w)
if [ $LocalHour -eq 6 ];then
	~/.local/bin/toopen-bell 1
	for i in {1..50}
	do
		~/.local/bin/toopen-talkable -t 大懒虫起床啦！多儿催你学英语啦！
		sleep sleep $((RANDOM % 19 + 12))
	done
elif [ $LocalHour -eq 7 ];then
	~/.local/bin/toopen-bell 3
	sleep 5
	~/.local/bin/toopen-talkable -t 该吃饭了，今天早上吃点什么好呢！
elif [ $LocalHour -eq 8 ];then
	~/.local/bin/toopen-bell 2
	sleep 5
	~/.local/bin/toopen-talkable -t 还不赶快学习，不想用计算机控制挖掘机炒菜了吗！
elif [ $LocalHour -eq 12 ];then
	~/.local/bin/toopen-bell 3
	sleep 5
	~/.local/bin/toopen-talkable -t 该吃饭了，今天中午吃点什么好呢？
elif [ $LocalHour -eq 13 ];then
	~/.local/bin/toopen-bell 2
	sleep 5
	~/.local/bin/toopen-talkable -t 还不赶快干活，再不赚钱就要喝西北风了！
elif [ $LocalHour -eq 18 ];then
	~/.local/bin/toopen-bell 3
	sleep 5
	~/.local/bin/toopen-talkable -t 该吃饭了，今天晚上吃点什么好呢？
elif [ $LocalHour -eq 19 ];then
	~/.local/bin/toopen-bell 3
	sleep 5
	~/.local/bin/toopen-talkable -t 该洗漱了，再不洗就臭了！
elif [ $LocalHour -eq 20 ];then
	~/.local/bin/toopen-bell 2
	sleep 5
	~/.local/bin/toopen-talkable -t 阅读使人明智，观影使人涣散，关掉媒体打开书籍吧！
elif [ $LocalHour -eq 22 ];then
	~/.local/bin/toopen-bell 4
	sleep 5
	~/.local/bin/toopen-talkable -st 熄灯时间到了，早睡早起身体好！
elif [ $LocalHour -ge 06 ] && [ $LocalHour -le 22 ];then 
	~/.local/bin/toopen-bell 2
	sleep 5
	~/.local/bin/toopen-talkable -t
else
	echo "睡觉时间"
fi
